Skip to content

fix(cli): propagate addon exit codes - #1282

Merged
yvgude merged 1 commit into
yvgude:mainfrom
cedric013:fix/1275-addon-exit-code-propagation
Jul 27, 2026
Merged

fix(cli): propagate addon exit codes#1282
yvgude merged 1 commit into
yvgude:mainfrom
cedric013:fix/1275-addon-exit-code-propagation

Conversation

@cedric013

Copy link
Copy Markdown
Contributor

Summary

  • make lean-ctx addon return status codes from addon subcommands instead of exiting inside addon-specific command modules
  • propagate the addon status code from the top-level CLI dispatch
  • keep invalid addon actions testable while preserving non-zero shell exit behavior

Closes #1275

Validation

  • cargo fmt --check
  • git grep std::process::exit(1) -- rust/src/cli/addon_cmd returns no matches
  • cargo check --bin lean-ctx was started locally but exceeded the useful local wait window; CI will run the full check

@yvgude
yvgude merged commit cda9aae into yvgude:main Jul 27, 2026
25 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix addon CLI exit code propagation

2 participants